package rpc.utils;

/**
 * @ClassName: RuntimeUtil
 * @Description:
 * @author: Kowk
 * @since:1.0.0
 */
public class RuntimeUtil {
    /**
    * @Description: 用于获取CPU的核心数
    * @Param:
    * @return:  CPU核心数
    */
    public static int cpus(){
        return Runtime.getRuntime().availableProcessors();
    }
}
